package com.yangtao.prototype.system.login.web;

import com.yangtao.framework.web.struts2.BaseModel;
import com.yangtao.prototype.system.domain.LogNote;
import com.yangtao.prototype.system.domain.MenuTree;

import java.util.List;

public class LoginModel extends BaseModel {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 用户代码
	 */
	private String userCode;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 验证码
	 */
	private String identifyingCode;

	/**
	 * 客户端IP地址
	 */
	private String clientIp;
	/**
	 * 客户端地址
	 */
	private String clientAddr;

	/**
	 * 菜单列表
	 */
	private List<MenuTree> menus;
	/**
	 * 日志
	 */
	private LogNote ln;
	private String topId;
	private String logId;

	public String getClientIp() {
		return clientIp;
	}

	public void setClientIp(String clientIp) {
		this.clientIp = clientIp;
	}

	public String getClientAddr() {
		return clientAddr;
	}

	public void setClientAddr(String clientAddr) {
		this.clientAddr = clientAddr;
	}

	public String getLogId() {
		return logId;
	}

	public void setLogId(String logId) {
		this.logId = logId;
	}

	public String getTopId() {
		return topId;
	}

	public void setTopId(String topId) {
		this.topId = topId;
	}

	public List<MenuTree> getMenus() {
		return menus;
	}

	public void setMenus(List<MenuTree> menus) {
		this.menus = menus;
	}

	public LogNote getLn() {
		if (ln == null)
			ln = new LogNote();
		return ln;
	}

	public void setLn(LogNote ln) {
		this.ln = ln;
	}

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getIdentifyingCode() {
		return identifyingCode;
	}

	public void setIdentifyingCode(String identifyingCode) {
		this.identifyingCode = identifyingCode;
	}
}
